package com.example.sls.controller;

import com.example.sls.pojo.user.Users;
import com.example.sls.service.intserfaces.user.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 编者：蓝江富
 * 时间：2024/6/17 8:11
 */
@RestController
@RequestMapping("admin")
public class Admin {
  @Autowired
  UsersService usersService;
  @GetMapping("getUsers")
  List<Users>getUsers(){

    return usersService.queryAllByLimit(new Users(),999,0);
  }
}
